import pymysql

class Mysql:
    connection = None
    cursor = None
    user = 'root'
    password = ''
    db_name = 'cqssc'
    host = 'localhost'
    pymysql = None
    find_cursor = None

    def __init__(self):
        self.pymysql = pymysql
        self.connection = pymysql.connect(self.host, self.user, self.password, self.db_name)
        self.cursor = self.connection.cursor()

    def close(self):
        self.cursor.close()
        self.connection.close()